var dataList = '{{dataList}}';
var sheetList = '{{sheetList2}}';
dataList = dataList.replace(/&#34;/g,'"');
dataList = JSON.parse(dataList);
var bt_chartList = [];
var bt_optionList = [];
for(var i in dataList){
    var chartDom = document.getElementById('chart'+i);
    var myChart = echarts.init(chartDom);
    var optionChart1;
    var data = dataList[i].SO2
    var tbdata = []
    for(var j in data){
        tbdata.push({
            "name":j,
            "value":data[j].toFixed(3)
        })
    }
    optionChart1 = {
        title: {
            text: sheetList[i],
            subtext: '',
            left: 'center'
        },
        tooltip: {
            trigger: 'item'
        },
        legend: {
            orient: 'vertical',
            left: 'left',
        },
        series: [
            {
                name: 'PM2.5平均值',
                type: 'pie',
                radius: '50%',
                data: tbdata,
                emphasis: {
                    itemStyle: {
                        shadowBlur: 10,
                        shadowOffsetX: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                    }
                }
            }
        ]
    };

    optionChart1 && myChart.setOption(optionChart1);
    chartList.push(myChart);
    optionList.push(optionChart1);
}